<%@page isErrorPage="true" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>封条验证及管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<script language="javascript" src="<%=request.getContextPath()%>/js/JQuery/jquery.js"></script>
  </head>
<script>
	var flag = 0;
	$(document).ready(function() {
		$(showDetailLink).click(function() {
			if (0 == flag++ % 2) {
				$(stackDiv).show("slow");
			} else {
				$(stackDiv).hide("slow");
			}
		});
	});
</script>
  <body>
  	<c:if test="${empty sessionScope.userInfo}">
  		<font color='red'>登陆超时，请重新登录！</font> <br>
  	</c:if>
  	<c:if test="${not empty sessionScope.userInfo}">
  	<div align="center">
  		<p>系统错误：<font color="#ff0000"><%=exception%></font></p>
  		请向系统管理员报告<a id="showDetailLink" href="#">详细</a>错误信息.
  	</div>
  	<div id="stackDiv" style="display:none">
		<%
			Throwable t = (Throwable) exception;
			if (null != t) {
			  	%><pre><%
				t.printStackTrace(new java.io.PrintWriter(out));
				%></pre><%
			}
		%>
	  	<table>
	  	<%
	  		java.util.Enumeration names = request.getAttributeNames();
	  		if (null != names) {
	  			while(names.hasMoreElements()) {
	  				String key = (String) names.nextElement();
	  				Object val = request.getAttribute(key);
	  				%>
	  					<tr>
	  						<td><%=key %></td>
	  						<td><%=val %></td>
	  					</tr>
	  				<%
	  			}
	  		}
	  		%>
	  	</table>
	  </div>
	  </c:if>
  </body>
</html>
